package com.sky.service;

import com.sky.dto.BackstageArticleAddDTO;
import com.sky.dto.BackstageArticleQueryDTO;
import com.sky.dto.BackstageArticleUpdateDTO;
import com.sky.result.PageResult;
import com.sky.vo.ArticleInfoVO;
import com.sky.vo.BackstageArticleSearchVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 贾晓晨
 * @version 1.0
 */
@Service
public interface BackstageArticleService {
    PageResult getAllArticle(BackstageArticleQueryDTO backstageArticleQueryDTO);


    ArticleInfoVO getArticleById(Integer id);

    void updateArticle(BackstageArticleUpdateDTO backstageArticleUpdateDTO);

    void addArticle(BackstageArticleAddDTO backstageArticleAddDTO);

    void deleteArticle(List<Integer> ids);

    String getArticleByTitle(Integer id);

    List<BackstageArticleSearchVO> getArticleByContent(String title);
}
